package com.wbs.param;


import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Getter
@Setter
public class TestVO {
    // 测试校验
    /*下边的注解都基于依赖 validation-api hibernate-validate*/
    @NotBlank(message = "msg must not blank")
    private String msg;



    @NotNull(message = "id must not null")
    @Max(value = 10,message = "id不能大于10")
    @Min(value = 0,message = "id 至少大于0")
    private Integer id;

}
